<!DOCTYPE html>
<html lang="en">
	<head>
	    <title>系统参数</title>
	    <meta charset="UTF-8" />
	    <meta name="Author" content="" />
	    <meta name="Keywords" content="" />
	    <meta name="Description" content="" />
	    
	    <!-- 样式库 -->
	    <link rel="stylesheet" href="../../../js/ztree/css/zTreeStyle/zTreeStyle.css" />
	    <link rel="stylesheet" href="../../../js/bootstrap/themes/default/bootstrap.css" />
	    <link rel="stylesheet" href="../../../js/jquery-easyui-1.5/themes/bootstrap/validatebox.css" />
	    <link rel="stylesheet" href="../../../js/jquery-easyui-1.5/themes/bootstrap/tooltip.css" />
	    <link rel="stylesheet" href="../../../css/jquery.select2.css" />
	    <link rel="stylesheet" href="../../../css/jquery.select2-bootstrap.css" />
	    
	    <!-- 插件库 -->
	    <script src="../../../js/common/package.js"></script>
		<script src="../../../js/common/url.js"></script>
		<script src="../../../js/common/json2.js"></script>	
		<script src="../../../js/common/jquery-1.11.3.min.js"></script>		
		<script src="../../../js/bootstrap/bootstrap.js"></script>
		<script src="../../../js/bootstrap/plugins/bootstrap-paginator.js"></script>
		<script src="../../../js/jquery-easyui-1.5/jquery.easyui.min.js"></script>
		<script src="../../../js/ztree/js/jquery.ztree.all.min.js"></script>
		<script src="../../../js/common/jquery.select2.js"></script>
		
		<!-- 业务库 -->
		<script src="../../../js/common/base.js"></script>
		<script src="../../../js/common/datagrid.js"></script>
		<script src="../../../js/common/tree.js"></script>
		<script src="../../../js/common/formatter.js"></script>	    
	    <script src="../../../js/each/cfm/configurationCenter/configQuery.js"></script>
		<script src="../../../js/each/cfm/merch/merch.js"></script>
		<!-- 页面样式 -->
		<style type="text/css">
			body {
				font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif !important;
				background:#eee url("../../../img/back.png") repeat;
			}
			.container-fluid {
				padding:5px;
			}
			.left-part {
				height:800px;
			}
			.modal-form {
				margin:8px;
			}
		</style>
	    
	</head>
	<body>
	
		<div class="container-fluid">
			<div class="row">				
				<div class="col-md-12">
					<div class="panel panel-info">
						<div class="panel-heading">
							<h4 class="panel-title">查询信息</h4>
					  	</div>
					  	<div class="panel-body">	
					  		<form id="searchForm" class="form-inline">
							  	<div class="form-group">
							    	<label class="form-label">商户名 </label>
							  	</div>
							  	<div class="form-group">
							    	<!-- <select id="merchantNo" name="merchantNo" class="form-control">
								    </select> -->
								    <input id="merchantNo" type="text" readonly value="全部商户" name="merchantNo" class="form-control merch" onclick="showMenu(); return false;" style="width:220px;"/>
							  	</div>
							  	<div class="form-group">
							    	<label class="form-label">期数 </label>
							  	</div>
							  	<div class="form-group">
							    	<input name="installPeriods" type="text" class="form-control input-sm" placeholder="请输入期数">
							  	</div>					  	
							  	<button id="btn-search" type="button" class="btn btn-default btn-sm">查询</button>
								<button id="btn-reset" type="button" class="btn btn-default btn-sm">重置</button>   							
							</form>		  												 	
					  	</div>
					</div>
					<div class="panel panel-info">
						<div class="panel-heading">
							<h4 class="panel-title">方案信息</h4>
					  	</div>
					  	<!-- <div class="panel-body">
					    	<form id="listForm">					    		
					    		<button id="btn-insert" type="button" class="btn btn-primary btn-sm">添加方案</button>
					    		<button id="btn-update" type="button" class="btn btn-warning btn-sm">修改方案</button>
					    		<button id="btn-remove" type="button" class="btn btn-danger btn-sm">删除方案</button>
					    	</form>
					  	</div> -->
						<table class="table table-striped table-bordered table-hover table-condensed datagrid">
						    <thead>
						    	<tr>						    		
							    	<!-- <th field="ck"></th>	 -->
							    	<th field="merchantNo">商户名</th>						    	
							    	<th field="id" hidden="true">ID</th>
							    	<th field="installPeriods">期数</th>
							    	<th field="downPaymentRatio">首付</th>
							    	<th field="marginRatio">保证金</th>							    	
							    	<th field="serviceFeeRatio">服务费</th>
							    	<th field="feeYear">上收息（月）</th>
							    	<th field="takePayment" formatter="Formatter.upPayment(val)">上收月供</th>
							    	<th field="feeRatio">月息率</th>
							    	<th field="planId" formatter="Formatter.planId(val)">账户分期计划</th>
						    	</tr>
						    </thead>
						    <tbody></tbody>
						</table>
					  	<div class="panel-footer">
							<div id="paginator"></div>
						</div>
					</div>
				</div>
			</div>		 	
		</div>
		

		<div id="update-win" class="modal fade" role="dialog" aria-labelledby="update-win-label" aria-describedby="……">
			<div class="modal-dialog" role="document">
		    	<div class="modal-content">
		      		<div class="modal-header">
		        		<h5 class="modal-title" id="update-win-label"></h5>
		      		</div>
		      		<div class="modal-body"></div>
	      			<div class="modal-form">
	      				<form id="updateForm" class="form-horizontal">
							<input name="id" type="text" class="hidden" />	
							<input id="type" name="type" type="text" class="hidden" value="1" />
							<div class="form-group">
				    			<label class="col-sm-3 control-label">商户名</label>
				    			<div class="col-sm-9">
				    				<select id="merchantNo" name="merchantNo" class="form-control">
									  
									</select>
				    			</div>
				  			</div>	
							<div class="form-group">
				    			<label class="col-sm-3 control-label">期数</label>
				    			<div class="col-sm-9">
				      				<input name="installPeriods" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入期数" required="required" validType="length[1,2]" />
				    			</div>
				  			</div>		
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">首付比例</label>
				    			<div class="col-sm-9" style='position:relative;'>
				    			    <div class="input-group">
                                        <input name="downPaymentRatio" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入首付比例" required="required" validType="length[1,6]" />
                                        <div class="input-group-addon">%</div>
                                    </div>
				    			</div>
				  			</div>	
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">保证金比例</label>
				    			<div class="col-sm-9" style='position:relative;'>
				    			    <div class="input-group">
                                        <input name="marginRatio" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入保证金比例" required="required" validType="length[1,6]" />
                                        <div class="input-group-addon">%</div>
                                    </div>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">服务费比例</label>
				    			<div class="col-sm-9" style='position:relative;'>
				    			    <div class="input-group">
                                        <input name="serviceFeeRatio" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入服务费比例" required="required" validType="length[1,6]" />
                                        <div class="input-group-addon">%</div>
                                    </div>
				    			</div>
				  			</div>
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">上收息（月）</label>
				    			<div class="col-sm-9">
				      				<input name="feeYear" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入上收息月数" required="required" validType="length[1,2]" />
				    			</div>
				  			</div>				  			
				  			<div class="form-group">
				    			<label class="col-sm-3 control-label">上收月供</label>
				    			<div class="col-sm-9">
				    				<select id="takePayment" name="takePayment" class="form-control">
									  <option value="1" selected>是</option>
									  <option value="2">否</option>
									</select>
				    			</div>
				  			</div>	
			 			    <div class="form-group">
				    			<label class="col-sm-3 control-label">月息率</label>
				    			<div class="col-sm-9" style='position:relative;'>
				    			    <div class="input-group">
                                        <input name="feeRatio" type="text" class="form-control input-sm easyui-validatebox" placeholder="请输入月息率" required="required" validType="length[1,6]" />
                                        <div class="input-group-addon">%</div>
                                    </div>
				    			</div>
				  			</div>
						</form>
	      			</div>		      		
		      		<div class="modal-footer">
				        <button id="btn-save" type="button" class="btn btn-success btn-sm">保存</button>
				        <button id="btn-close" type="button" class="btn btn-default btn-sm">关闭</button>		        
		      		</div>
		    	</div>
		  	</div>
		</div>
		<div id="menuContent" class="menuContent" style="max-height:500px;overflow:scroll;display:none; position: absolute;background:#fff;border:1px solid #ccc;">
	        <ul id="treeDemo" class="ztree" style="margin-top:0; width:200px;"></ul>
        </div>
	</body>
</html>